package operation;

import book.Book;
import book.BookList;

public class ShowOperation implements Ioperateion{
    @Override
    public void work(BookList books) {
        System.out.println("显示图书！");
        int currentSize = books.getUsedSize();
        for (int i = 0; i < currentSize; i++) {
            Book book = books.getBook(i);
            System.out.println(book.toString());
        }
    }
}
